<?php
function NewslettersShellTasksHook($shell)
{
	$shell->tasks[] = 'Newsletter';
}

function NewslettersBuildAdminMenuHook($backend)
{
	$backend->addMenuItem(ADMIN_MISC, __('Newsletters'),'/newsletters/newsletters/index');
	$backend->addMenuItem(ADMIN_USERS, __('Subscribers'),'/newsletters/subscribers/index');
}

function NewslettersAfterComponentInitHook($ctrl)
{
	if(cr('cmsInstalled') && @strpos($_SERVER['REQUEST_URI'],'/cms/startTestSession') === false)
	{
		Configure::registerConfigModelLoder("NewsletterConfig",'Newsletters.NewsletterConfig');
	}
}
?>